<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"ghostlitao.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="背景给客户的车间做了一个呼料的系统,大屏幕可以实时显示产线的呼料需求(APP),一方面仓库人员可以手机上看到这些呼料需求,另一方面,仓库的大屏幕可以显示分配到此仓库的呼料需求. 新需求客户希望有新的呼料请求的时候,大屏幕不仅仅要显示,而且要语音提醒.因为我们大屏幕用的是 Chrome 的浏览器来显示呼料请求,所以直接使用Chrome 的 TTS 接口即可: 123456function speak">
<meta property="og:type" content="article">
<meta property="og:title" content="完整的记录一次大屏幕 语音播报的需求解决">
<meta property="og:url" content="https://ghostlitao.gitee.io/2023/05/10/%E5%AE%8C%E6%95%B4%E7%9A%84%E8%AE%B0%E5%BD%95%E4%B8%80%E6%AC%A1%E5%A4%A7%E5%B1%8F%E5%B9%95-%E8%AF%AD%E9%9F%B3%E6%92%AD%E6%8A%A5%E7%9A%84%E9%9C%80%E6%B1%82%E8%A7%A3%E5%86%B3/index.html">
<meta property="og:site_name" content="去找Todd">
<meta property="og:description" content="背景给客户的车间做了一个呼料的系统,大屏幕可以实时显示产线的呼料需求(APP),一方面仓库人员可以手机上看到这些呼料需求,另一方面,仓库的大屏幕可以显示分配到此仓库的呼料需求. 新需求客户希望有新的呼料请求的时候,大屏幕不仅仅要显示,而且要语音提醒.因为我们大屏幕用的是 Chrome 的浏览器来显示呼料请求,所以直接使用Chrome 的 TTS 接口即可: 123456function speak">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-05-10T07:55:16.000Z">
<meta property="article:modified_time" content="2023-06-02T09:26:16.374Z">
<meta property="article:author" content="Todd">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://ghostlitao.gitee.io/2023/05/10/%E5%AE%8C%E6%95%B4%E7%9A%84%E8%AE%B0%E5%BD%95%E4%B8%80%E6%AC%A1%E5%A4%A7%E5%B1%8F%E5%B9%95-%E8%AF%AD%E9%9F%B3%E6%92%AD%E6%8A%A5%E7%9A%84%E9%9C%80%E6%B1%82%E8%A7%A3%E5%86%B3/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>完整的记录一次大屏幕 语音播报的需求解决 | 去找Todd</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?d988341c748563d16048e8e7dab0f384";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">去找Todd</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">Todd的博客</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2023/05/10/%E5%AE%8C%E6%95%B4%E7%9A%84%E8%AE%B0%E5%BD%95%E4%B8%80%E6%AC%A1%E5%A4%A7%E5%B1%8F%E5%B9%95-%E8%AF%AD%E9%9F%B3%E6%92%AD%E6%8A%A5%E7%9A%84%E9%9C%80%E6%B1%82%E8%A7%A3%E5%86%B3/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          完整的记录一次大屏幕 语音播报的需求解决
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2023-05-10 15:55:16" itemprop="dateCreated datePublished" datetime="2023-05-10T15:55:16+08:00">2023-05-10</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2023-06-02 17:26:16" itemprop="dateModified" datetime="2023-06-02T17:26:16+08:00">2023-06-02</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h1><p>给客户的车间做了一个呼料的系统,大屏幕可以实时显示产线的呼料需求(APP),一方面仓库人员可以手机上看到这些呼料需求,另一方面,仓库的大屏幕可以显示分配到此仓库的呼料需求.</p>
<h2 id="新需求"><a href="#新需求" class="headerlink" title="新需求"></a>新需求</h2><p>客户希望有新的呼料请求的时候,大屏幕不仅仅要显示,而且要语音提醒.<br>因为我们大屏幕用的是 Chrome 的浏览器来显示呼料请求,所以直接使用Chrome 的 TTS 接口即可:</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">function speakOut(msg) &#123;</span><br><span class="line">	var u = new SpeechSynthesisUtterance();</span><br><span class="line">	u.lang = &#x27;zh-CN&#x27;;</span><br><span class="line">	u.text = msg;</span><br><span class="line">	window.speechSynthesis.speak(u);</span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure>
<p>然后其他的逻辑就不写了,比如如何判断新到语音,如何不再播报已经播报过的,如何播报捡料超时的任务等等.</p>
<span id="more"></span>
<h3 id="新问题"><a href="#新问题" class="headerlink" title="新问题"></a>新问题</h3><p>问题来自我们的大屏幕客户端,原来的硬件结构是 电视机+小主机(插音箱)+Chrome .<br>现在换成了 树莓派 RespberryPi(插音箱)+电视机+Chromium(Electron 写了个壳子用来保证无人值守)<br>问题就变成了一连串:</p>
<ol>
<li>Chromium在树莓派上貌似没有 TTS 的发音,Google 了一堆,又是加启动参数,又是要装 eSpeak 之类的.全试过没用.具体的表现就是:<code>window.speechSynthesis.getVoices()</code>返回的数组是<code>[]</code>.没有Voice,当然读不出来.</li>
<li>因为大屏幕终端很多,就算这种方法可行,也不可能一个一个树莓派去调整</li>
<li>所以更换思路,准备换成 Web 版本的接口,利用 js 来远程调用播放 MP3</li>
<li>找了很多 Web 的接口,貌似都收费…</li>
<li>终于,下定决心 <strong>自己搭一个TTS语音服务器</strong></li>
</ol>
<p>首先感谢 <a target="_blank" rel="noopener" href="http://www.eguidedog.net/cn/ekho.php">http://www.eguidedog.net/cn/ekho.php</a> 的 余音(Ekho) 项目,非常给力.<br>在服务器上装了Linux发行版.具体的安装教程在:<br><a target="_blank" rel="noopener" href="http://www.eguidedog.net/doc/doc_install_ekho.php">http://www.eguidedog.net/doc/doc_install_ekho.php</a> 下方 ++CENTOS6安装Ekho的方法++</p>
<p>打算帮他搞一个 Docker 版本的方便自己和大家.放到我的 TODOList 里<br>具体的安装的时候,还有些小问题,貌似 <code>scl</code> 我没装上, 不过没影响到后续使用.<br>安装的位置在 : <code>/root/eGuideDog/ekho-8.0</code><br>装好之后用 Python 写了个脚本,基于 flask 的,非常简单:<br>假设以后提供服务的 tts 服务器地址为 tts.todd.com</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br></pre></td><td class="code"><pre><span class="line">from flask import Flask, request, jsonify</span><br><span class="line">import uuid</span><br><span class="line">import os</span><br><span class="line">import sys</span><br><span class="line"></span><br><span class="line">@app.route(&#x27;/speak&#x27;)</span><br><span class="line">def speak():</span><br><span class="line">    txt = request.args.get(&#x27;txt&#x27;, &#x27;&#x27;).encode(&#x27;utf-8&#x27;).strip()</span><br><span class="line">    if not txt:</span><br><span class="line">        ret = &#123;</span><br><span class="line">            &quot;msg&quot;: &#x27;txt is required!&#x27;,</span><br><span class="line">            &quot;code&quot;: 0,</span><br><span class="line">        &#125;</span><br><span class="line">        return jsonify(ret)</span><br><span class="line"></span><br><span class="line">    file_name = str(uuid.uuid1()) + &quot;.mp3&quot;</span><br><span class="line">    path = &quot;/data/wwwroot/tts.todd.com/&quot; + file_name</span><br><span class="line">    http_path = &quot;http://tts.todd.com/&quot; + file_name</span><br><span class="line">    # TODO  监控文件过多后自动清除历史文件</span><br><span class="line"></span><br><span class="line">    os.environ[&#x27;PATH&#x27;] += os.pathsep + &#x27;/root/eGuideDog/ekho-8.0&#x27;</span><br><span class="line">    os.environ[&#x27;EKHO_DATA_PATH&#x27;] = &#x27;/root/eGuideDog/ekho-8.0/ekho-data/&#x27;</span><br><span class="line"></span><br><span class="line">    cmd = &quot;ekho -o %s  -t=mp3  &#x27;%s&#x27;&quot; % (path, txt)</span><br><span class="line">    # 其他需要啥参数,自己来</span><br><span class="line">    os.system(cmd)</span><br><span class="line"></span><br><span class="line">    ret = &#123;</span><br><span class="line">        &quot;cmd&quot;: cmd,</span><br><span class="line">        &quot;path&quot;: http_path,</span><br><span class="line">        &quot;code&quot;: 1,</span><br><span class="line">    &#125;</span><br><span class="line">    return jsonify(ret)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">if __name__ == &#x27;__main__&#x27;:</span><br><span class="line">    app.run()</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p>注意里面的几个坑:</p>
<ul>
<li>文件太多没有自动清理</li>
<li>没有鉴权,不要放出来给别人,容易文件爆炸</li>
<li>因为我装ekho的时候,有些路径问题,所以我启动 cmd 之前,加了环境变量.</li>
<li>nginx 要在前面反向代理:<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">location ~ .*\.mp3&#123;</span><br><span class="line">    expires 1s;</span><br><span class="line">    access_log off;</span><br><span class="line">  &#125;</span><br><span class="line">  location / &#123;</span><br><span class="line">           add_header Access-Control-Allow-Origin *;</span><br><span class="line">           add_header Access-Control-Allow-Methods &#x27;GET, POST, OPTIONS&#x27;;</span><br><span class="line">           add_header Access-Control-Allow-Headers &#x27;DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization&#x27;;</span><br><span class="line">            proxy_pass   http://127.0.0.1:5000/;</span><br><span class="line">            proxy_redirect  off;</span><br><span class="line">            proxy_set_header  Host $host;</span><br><span class="line">            proxy_set_header X-Forwarded-Proto https;</span><br><span class="line">            proxy_set_header  X-Real-IP $remote_addr;</span><br><span class="line">            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;</span><br><span class="line">            proxy_set_header   Cookie $http_cookie;</span><br><span class="line">            proxy_connect_timeout 600s;</span><br><span class="line">            proxy_send_timeout 600s;</span><br><span class="line">            proxy_read_timeout 600s;</span><br><span class="line">            chunked_transfer_encoding       off;</span><br><span class="line">  &#125;</span><br></pre></td></tr></table></figure>
上面大部分不用设置,前三行为了防止 js 调用的时候跨域.第四行用来转给 flask.<br>其他都不重要.</li>
</ul>
<p>截至目前 tts 服务器好了.<br>接下来是前端调用:<br>把原来的 speakOut函数做一个改造:</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">function speakOut(msg) &#123;</span><br><span class="line">	if (window.speechSynthesis.getVoices().length &gt; 0) &#123;</span><br><span class="line">		var u = new SpeechSynthesisUtterance();</span><br><span class="line">		u.lang = &#x27;zh-CN&#x27;;</span><br><span class="line">		u.text = msg;</span><br><span class="line">		window.speechSynthesis.speak(u);</span><br><span class="line">	&#125; else &#123;</span><br><span class="line">		$.get(&quot;http://tts.todd.com/speak?txt=&quot; + encodeURIComponent(msg), function (res) &#123;</span><br><span class="line">			if (res) &#123;</span><br><span class="line">				var audio = $(&quot;&lt;iframe&gt;&quot;);</span><br><span class="line">				audio.attr(&#x27;allow&#x27;, &#x27;autoplay&#x27;).attr(&quot;src&quot;, res.path).css(&quot;visibility&quot;, &#x27;hidden&#x27;);</span><br><span class="line">				$(&quot;body&quot;).append(audio);</span><br><span class="line">				</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;)</span><br><span class="line">	&#125;</span><br><span class="line">	</span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure>
<p>其实这里面还有一个大坑,我直接放出来解决方法了,我并没有使用<code>&lt;audio&gt;</code>标签,<br>因为我试过,<code>audio</code>标签在Chrome 的某个版本之后,再也不让自动播放了.<br>不管你手动调用 play 也好,加上 aotuplay 也罢,都没用.</p>
<p>当然了,手机浏览器很早就这样了,不过手机很简单,用户总得摸手机把,只要他敢摸,咱就有办法让语音放出来,可是电脑不一样啊,这特么大屏幕在仓库的高墙上挂着,总不能让语音来的时候,让仓库的人爬上去点下浏览器吧.</p>
<p>不管咋样,我们这种方法也算<strong>解决 Chrome 浏览器 自动播放音频</strong>的需求.</p>
<p>总结一下,解决的几个问题:</p>
<ul>
<li>CentOS上利用<code>ekho</code> + <code>Python Flask</code> <strong>安装 Web 版本的 TTS 语音服务器</strong>,<em>可能</em>给公司省了一大笔钱,无以为报,接下来尝试抽空给人家做一个 Docker,顺便给人家Support 一个十块二十块的.</li>
<li>前端<strong>解决 Chrome 浏览器 自动播放音频</strong>的问题,在浏览器支持 TTS 时候,调用浏览器接口,不支持的时候,调用 TTS 远程服务器播放 MP3文件.</li>
</ul>

    </div>

    
    
    

      <footer class="post-footer">

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/06/17/Error-Looks-like-you-forgot-to-wrap-your-root-component-with-Provider-component-from-ant-des/" rel="prev" title="Error: Looks like you forgot to wrap your root component with `Provider` component from `@ant-des...">
      <i class="fa fa-chevron-left"></i> Error: Looks like you forgot to wrap your root component with `Provider` component from `@ant-des...
    </a></div>
      <div class="post-nav-item">
    <a href="/2023/05/10/docker-build-apt-get-update%E6%89%BE%E4%B8%8D%E5%88%B0%E5%8C%85/" rel="next" title="docker build apt-get update找不到包">
      docker build apt-get update找不到包 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E8%83%8C%E6%99%AF"><span class="nav-number">1.</span> <span class="nav-text">背景</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%96%B0%E9%9C%80%E6%B1%82"><span class="nav-number">1.1.</span> <span class="nav-text">新需求</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%96%B0%E9%97%AE%E9%A2%98"><span class="nav-number">1.1.1.</span> <span class="nav-text">新问题</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Todd"
      src="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
  <p class="site-author-name" itemprop="name">Todd</p>
  <div class="site-description" itemprop="description">把生命浪费在美好的实物上</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">34</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">2</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/ghostlitao" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;ghostlitao" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 2019 – 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Todd</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
